﻿using System;
namespace Gx.Model
{
    [Serializable]
    public partial class E_RewardAmerceInfo
    {
        private int _id;
        private int _empid;
        private string _empnum;
        private string _empname;
        private decimal _salary;
        private byte _rewardamercetype;
        private DateTime _rewardamercetime;
        private string _reason;
        private int _adduser;
        private string _addusername;
        private DateTime _addtime;
        private byte _status;
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }
        public int EmpId
        {
            get
            {
                return _empid;
            }
            set { _empid = value; }
        }
        public string EmpNum
        {
            get
            {
                if (_empnum == null)
                {
                    return "";
                }
                return _empnum;
            }
            set { _empnum = value; }
        }
        public string EmpName
        {
            get
            {
                if (_empname == null)
                {
                    return "";
                }
                return _empname;
            }
            set { _empname = value; }
        }
        public decimal Salary
        {
            get
            {
                return _salary;
            }
            set { _salary = value; }
        }
        public byte RewardAmerceType
        {
            get
            {
                return _rewardamercetype;
            }
            set { _rewardamercetype = value; }
        }
        public DateTime RewardAmerceTime
        {
            get
            {
                if (_rewardamercetime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _rewardamercetime;
            }
            set { _rewardamercetime = value; }
        }
        public string Reason
        {
            get
            {
                if (_reason == null)
                {
                    return "";
                }
                return _reason;
            }
            set { _reason = value; }
        }
        public int AddUser
        {
            get
            {
                return _adduser;
            }
            set { _adduser = value; }
        }
        public string AdduserName
        {
            get
            {
                if (_addusername == null)
                {
                    return "";
                }
                return _addusername;
            }
            set { _addusername = value; }
        }
        public DateTime AddTime
        {
            get
            {
                if (_addtime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _addtime;
            }
            set { _addtime = value; }
        }
        public byte Status
        {
            get
            {
                return _status;
            }
            set { _status = value; }
        }
    }

    public partial class E_RewardAmerceInfo
    {
        /// <summary>
        /// 奖惩类型名称
        /// </summary>
        public string RewardAmerceTypeName { get; set; }
    }
}
